﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Abstract;
using System.Data.Linq;
using System.Configuration;
using System.Diagnostics;

namespace DomainModel.Concrete
{
    public class StatusRepository:IStatusRepository
    {
        private Table<Status> statusTable;
        private DataContext dataContext;

        public StatusRepository()
        {
            
            String cs = ConfigurationManager.ConnectionStrings["DBConnectionString"].ToString();
            dataContext = new DataContext(cs);
            statusTable = dataContext.GetTable<Status>();
        }

        public IQueryable<Status> Statuses
        {
            get { return statusTable; }
        }
        
    }
}
